package aa.jx.order.mapper;

import aa.jx.order.model.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ProductMapper {
    Product selectById(Integer id);
    int reduceStock(@Param("productId") Integer productId, @Param("quantity") Integer quantity);
    int increaseStock(@Param("productId") Integer productId, @Param("quantity") Integer quantity);
}